package org.example.stream.demo;

import org.example.stream.demo.entity.User;

import java.util.ArrayList;
import java.util.List;

public class UserBuilder {
    public static List<User> bindings() {
        List<User> list = new ArrayList<>();

        list.add(User.builder().id("001").name("001_name").age(Byte.valueOf("20")).idCard("001001").build());
        list.add(User.builder().id("002").name("002_name").age(Byte.valueOf("10")).idCard("001002").build());
        list.add(User.builder().id("003").name("003_name").age(Byte.valueOf("2")).idCard("001003").build());
        list.add(User.builder().id("004").name("004_name").age(Byte.valueOf("50")).idCard("001004").build());
        list.add(User.builder().id("005").name("005_name").age(Byte.valueOf("80")).idCard("001005").build());

        return list;
    }
}
